.class Lorg/com/cctest/view/SlideSwitch$2;
.super Ljava/lang/Object;
.source "SlideSwitch.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lorg/com/cctest/view/SlideSwitch;->moveToDest(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lorg/com/cctest/view/SlideSwitch;

.field private final synthetic val$handler:Landroid/os/Handler;

.field private final synthetic val$toRight:Z


# direct methods
.method constructor <init>(Lorg/com/cctest/view/SlideSwitch;ZLandroid/os/Handler;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    iput-boolean p2, p0, Lorg/com/cctest/view/SlideSwitch$2;->val$toRight:Z

    iput-object p3, p0, Lorg/com/cctest/view/SlideSwitch$2;->val$handler:Landroid/os/Handler;

    .line 217
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .prologue
    const/4 v6, 0x1

    const/high16 v5, 0x437f0000    # 255.0f

    const/4 v4, 0x0

    .line 220
    iget-boolean v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->val$toRight:Z

    if-eqz v1, :cond_3

    .line 221
    :goto_0
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->frontRect_left:I
    invoke-static {v1}, Lorg/com/cctest/view/SlideSwitch;->access$1(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v1

    iget-object v2, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->max_left:I
    invoke-static {v2}, Lorg/com/cctest/view/SlideSwitch;->access$2(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v2

    if-le v1, v2, :cond_1

    .line 231
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    const/16 v2, 0xff

    invoke-static {v1, v2}, Lorg/com/cctest/view/SlideSwitch;->access$3(Lorg/com/cctest/view/SlideSwitch;I)V

    .line 232
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    iget-object v2, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->max_left:I
    invoke-static {v2}, Lorg/com/cctest/view/SlideSwitch;->access$2(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v2

    invoke-static {v1, v2}, Lorg/com/cctest/view/SlideSwitch;->access$5(Lorg/com/cctest/view/SlideSwitch;I)V

    .line 233
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    invoke-static {v1, v6}, Lorg/com/cctest/view/SlideSwitch;->access$6(Lorg/com/cctest/view/SlideSwitch;Z)V

    .line 234
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->listener:Lorg/com/cctest/view/SlideSwitch$SlideListener;
    invoke-static {v1}, Lorg/com/cctest/view/SlideSwitch;->access$0(Lorg/com/cctest/view/SlideSwitch;)Lorg/com/cctest/view/SlideSwitch$SlideListener;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 235
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->val$handler:Landroid/os/Handler;

    invoke-virtual {v1, v6}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 236
    :cond_0
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    iget-object v2, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->max_left:I
    invoke-static {v2}, Lorg/com/cctest/view/SlideSwitch;->access$2(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v2

    invoke-static {v1, v2}, Lorg/com/cctest/view/SlideSwitch;->access$7(Lorg/com/cctest/view/SlideSwitch;I)V

    .line 257
    :goto_1
    return-void

    .line 222
    :cond_1
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    iget-object v2, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->frontRect_left:I
    invoke-static {v2}, Lorg/com/cctest/view/SlideSwitch;->access$1(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v2

    int-to-float v2, v2

    mul-float/2addr v2, v5

    iget-object v3, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->max_left:I
    invoke-static {v3}, Lorg/com/cctest/view/SlideSwitch;->access$2(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v3

    int-to-float v3, v3

    div-float/2addr v2, v3

    float-to-int v2, v2

    invoke-static {v1, v2}, Lorg/com/cctest/view/SlideSwitch;->access$3(Lorg/com/cctest/view/SlideSwitch;I)V

    .line 223
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # invokes: Lorg/com/cctest/view/SlideSwitch;->invalidateView()V
    invoke-static {v1}, Lorg/com/cctest/view/SlideSwitch;->access$4(Lorg/com/cctest/view/SlideSwitch;)V

    .line 224
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->frontRect_left:I
    invoke-static {v1}, Lorg/com/cctest/view/SlideSwitch;->access$1(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v2

    add-int/lit8 v2, v2, 0x3

    invoke-static {v1, v2}, Lorg/com/cctest/view/SlideSwitch;->access$5(Lorg/com/cctest/view/SlideSwitch;I)V

    .line 226
    const-wide/16 v1, 0x3

    :try_start_0
    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 227
    :catch_0
    move-exception v0

    .line 228
    .local v0, "e":Ljava/lang/InterruptedException;
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_0

    .line 240
    .end local v0    # "e":Ljava/lang/InterruptedException;
    :cond_2
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    iget-object v2, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->frontRect_left:I
    invoke-static {v2}, Lorg/com/cctest/view/SlideSwitch;->access$1(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v2

    int-to-float v2, v2

    mul-float/2addr v2, v5

    iget-object v3, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->max_left:I
    invoke-static {v3}, Lorg/com/cctest/view/SlideSwitch;->access$2(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v3

    int-to-float v3, v3

    div-float/2addr v2, v3

    float-to-int v2, v2

    invoke-static {v1, v2}, Lorg/com/cctest/view/SlideSwitch;->access$3(Lorg/com/cctest/view/SlideSwitch;I)V

    .line 241
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # invokes: Lorg/com/cctest/view/SlideSwitch;->invalidateView()V
    invoke-static {v1}, Lorg/com/cctest/view/SlideSwitch;->access$4(Lorg/com/cctest/view/SlideSwitch;)V

    .line 242
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->frontRect_left:I
    invoke-static {v1}, Lorg/com/cctest/view/SlideSwitch;->access$1(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v2

    add-int/lit8 v2, v2, -0x3

    invoke-static {v1, v2}, Lorg/com/cctest/view/SlideSwitch;->access$5(Lorg/com/cctest/view/SlideSwitch;I)V

    .line 244
    const-wide/16 v1, 0x3

    :try_start_1
    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_1

    .line 239
    :cond_3
    :goto_2
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->frontRect_left:I
    invoke-static {v1}, Lorg/com/cctest/view/SlideSwitch;->access$1(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v1

    iget-object v2, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->min_left:I
    invoke-static {v2}, Lorg/com/cctest/view/SlideSwitch;->access$8(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v2

    if-ge v1, v2, :cond_2

    .line 249
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    invoke-static {v1, v4}, Lorg/com/cctest/view/SlideSwitch;->access$3(Lorg/com/cctest/view/SlideSwitch;I)V

    .line 250
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    iget-object v2, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->min_left:I
    invoke-static {v2}, Lorg/com/cctest/view/SlideSwitch;->access$8(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v2

    invoke-static {v1, v2}, Lorg/com/cctest/view/SlideSwitch;->access$5(Lorg/com/cctest/view/SlideSwitch;I)V

    .line 251
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    invoke-static {v1, v4}, Lorg/com/cctest/view/SlideSwitch;->access$6(Lorg/com/cctest/view/SlideSwitch;Z)V

    .line 252
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->listener:Lorg/com/cctest/view/SlideSwitch$SlideListener;
    invoke-static {v1}, Lorg/com/cctest/view/SlideSwitch;->access$0(Lorg/com/cctest/view/SlideSwitch;)Lorg/com/cctest/view/SlideSwitch$SlideListener;

    move-result-object v1

    if-eqz v1, :cond_4

    .line 253
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->val$handler:Landroid/os/Handler;

    invoke-virtual {v1, v4}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 254
    :cond_4
    iget-object v1, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    iget-object v2, p0, Lorg/com/cctest/view/SlideSwitch$2;->this$0:Lorg/com/cctest/view/SlideSwitch;

    # getter for: Lorg/com/cctest/view/SlideSwitch;->min_left:I
    invoke-static {v2}, Lorg/com/cctest/view/SlideSwitch;->access$8(Lorg/com/cctest/view/SlideSwitch;)I

    move-result v2

    invoke-static {v1, v2}, Lorg/com/cctest/view/SlideSwitch;->access$7(Lorg/com/cctest/view/SlideSwitch;I)V

    goto/16 :goto_1

    .line 245
    :catch_1
    move-exception v0

    .line 246
    .restart local v0    # "e":Ljava/lang/InterruptedException;
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_2
.end method
